package miracle.joker.design.visitor;

public class VisitorA extends Visitor {
    @Override
    public void visit(ElementA elementA) {
        System.out.println("VisitorA 访问元素A：" + elementA.operationA());
    }

    @Override
    public void visit(ElementB elementB) {
        System.out.println("VisitorA 访问元素B：" + elementB.operationB());
    }
}
